<?php

	/**
	 * @see Bike_Model_Mapper_Abstract
	 */
	require_once 'Bike/Model/Mapper/Abstract.php';

	
	class Bike_Model_Mapper_Area extends Bike_Model_Mapper_Abstract
	{
		const DB_TABLE_NAME = 'area';
		const DB_TABLE_PK_NAME = 'area_id';
		const DB_TABLE_ALIAS = 'a';
		const READ_ONLY = True;

		static public function getInstance()
	    {
	        return self::_getInstance(__CLASS__);
	    }
	    
		public function getAreaIdFieldParams($type = null)
	    {
	    	switch($type)
	    	{
	    		case self::PARAMS_COMMON: return array(
		    		'label' => $this->translate('Area ID'),
		    		'order' => 10,
	    		);
	    		default: return array();
	    	}
	    }
	    
	    public function getCodeFieldParams($type = null)
	    {
	    	switch($type)
	    	{
	    		case self::PARAMS_COMMON: return array(
		    		'label' => $this->translate('Code'),
		    		'order' => 20,
	    		);
	    		default: return array();
	    	}
	    }
	}